Optimal. Leaf size=112 \[ -\frac {2 a \left (15 c^2+10 c d+7 d^2\right ) \cos (e+f x)}{15 f \sqrt {a \sin (e+f x)+a}}-\frac {4 d (5 c-d) \cos (e+f x) \sqrt {a \sin (e+f x)+a}}{15 f}-\frac {2 d^2 \cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{5 a f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.17, antiderivative size = 112, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2761, 2751, 2646} \[ -\frac {2 a \left (15 c^2+10 c d+7 d^2\right ) \cos (e+f x)}{15 f \sqrt {a \sin (e+f x)+a}}-\frac {4 d (5 c-d) \cos (e+f x) \sqrt {a \sin (e+f x)+a}}{15 f}-\frac {2 d^2 \cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{5 a f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2646
Rule 2751
Rule 2761
Rubi steps
\begin {align*} \int \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^2 \, dx &=-\frac {2 d^2 \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{5 a f}+\frac {2 \int \sqrt {a+a \sin (e+f x)} \left (\frac {1}{2} a \left (5 c^2+3 d^2\right )+a (5 c-d) d \sin (e+f x)\right ) \, dx}{5 a}\\ &=-\frac {4 (5 c-d) d \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{15 f}-\frac {2 d^2 \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{5 a f}+\frac {1}{15} \left (15 c^2+10 c d+7 d^2\right ) \int \sqrt {a+a \sin (e+f x)} \, dx\\ &=-\frac {2 a \left (15 c^2+10 c d+7 d^2\right ) \cos (e+f x)}{15 f \sqrt {a+a \sin (e+f x)}}-\frac {4 (5 c-d) d \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{15 f}-\frac {2 d^2 \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{5 a f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.29, size = 111, normalized size = 0.99 \[ -\frac {\sqrt {a (\sin (e+f x)+1)} \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (30 c^2+4 d (5 c+2 d) \sin (e+f x)+40 c d-3 d^2 \cos (2 (e+f x))+19 d^2\right )}{15 f \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.47, size = 157, normalized size = 1.40 \[ \frac {2 \, {\left (3 \, d^{2} \cos \left (f x + e\right )^{3} - {\left (10 \, c d + d^{2}\right )} \cos \left (f x + e\right )^{2} - 15 \, c^{2} - 10 \, c d - 7 \, d^{2} - {\left (15 \, c^{2} + 20 \, c d + 11 \, d^{2}\right )} \cos \left (f x + e\right ) - {\left (3 \, d^{2} \cos \left (f x + e\right )^{2} - 15 \, c^{2} - 10 \, c d - 7 \, d^{2} + 2 \, {\left (5 \, c d + 2 \, d^{2}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a}}{15 \, {\left (f \cos \left (f x + e\right ) + f \sin \left (f x + e\right ) + f\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.81, size = 92, normalized size = 0.82 \[ \frac {2 \left (1+\sin \left (f x +e \right )\right ) a \left (\sin \left (f x +e \right )-1\right ) \left (3 d^{2} \left (\sin ^{2}\left (f x +e \right )\right )+10 c d \sin \left (f x +e \right )+4 d^{2} \sin \left (f x +e \right )+15 c^{2}+20 c d +8 d^{2}\right )}{15 \cos \left (f x +e \right ) \sqrt {a +a \sin \left (f x +e \right )}\, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \sin \left (f x + e\right ) + a} {\left (d \sin \left (f x + e\right ) + c\right )}^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \sqrt {a+a\,\sin \left (e+f\,x\right )}\,{\left (c+d\,\sin \left (e+f\,x\right )\right )}^2 \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )} \left (c + d \sin {\left (e + f x \right )}\right )^{2}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________